package com.itheima.controller;/**
 *
 */

import com.itheima.domain.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName TestDemo04
 * @Description TODO
 *  @Author $无小白$
 *  @Date 2020/8/24 23:42
 *  @Version 1.0
 **/
public class TestDemo04 {

@Test
    public void testset(){
       /* User user = new User();
        user.setName("admain");*/
    ApplicationContext ac = new ClassPathXmlApplicationContext("spring.xml");
    User u666 = ac.getBean("u666", User.class);
    String name = u666.getName();
    System.out.println("name = " + name);
}
}
